exynos: i2c: Fix i2c driver to handle NACKs properly
authorNaveen Krishna Ch <[email protected]>
Tue, 15 Oct 2013 10:31:43 +0000 (16:01 +0530)
committerHeiko Schocher <[email protected]>
Thu, 17 Oct 2013 05:20:26 +0000 (07:20 +0200)
commite4e2402071e8052eab7fb10ecfbdec01310ac06f
treea1556915d8ed661408672fc234e867569cfd5af5
parent83d271b5ffc19e98098861dd21e940cf53545a43
exynos: i2c: Fix i2c driver to handle NACKs properly

The Exynos5 i2c driver does not handle NACKs properly. This change:

- fixes the NACK processing problem (do not continue transaction if
  address cycle was NACKed)

- eliminates a fair amount of duplicate code

Signed-off-by: Vadim Bendebury <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Signed-off-by: Naveen Krishna Chatradhi <[email protected]>
drivers/i2c/s3c24x0_i2c.c